<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=utf-8"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>untitled</title>
  </head>
  <body>
  <logic:iterate id="beneficiario" name="beneSelected" type="com.cs.beneficios.business.model.BeneficiarioVO"> 
  <logic:present name="beneficioSelected">
    <logic:iterate id="beneficioSelected" name="beneficioSelected" type="com.cs.beneficios.business.model.BeneficioVO"> 

    <form name="formRenovar" method="get" action="<%=request.getContextPath()+"/beneficios/GuardarBeneRenovado.do"%>">
    <table  cellspacing="3" cellpadding="2" border="0" width="90%" align="center">
        <tr><td class="titulosenblanco">
          <DIV align="center">
            <STRONG>RENOVAR BENEFICIO</STRONG>
          </DIV>
        </td></tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
             <td>Beneficiario:&nbsp;<strong><bean:write name="beneficiario" property="numeroDocumento"/>&nbsp;&nbsp;-&nbsp;&nbsp; 
             <bean:write name="beneficiario" property="nombre1"/>
             <bean:write name="beneficiario" property="nombre2"/>
             <bean:write name="beneficiario" property="primerApellido"/>
             <bean:write name="beneficiario" property="segundoApellido"/></strong>
             <input type="hidden" name="code" value="<bean:write name="beneficiario" property="code"/>"/>
             </td>
        </tr>
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
        <tr>
          <td width="2%">
            <DIV align="left">Beneficio a renovar:
            <bean:write name="beneficioSelected" property="nombre"/></DIV>
            
          </td>
        </tr>
        <tr>
          <td align="center">
            <DIV align="left">Numero de dias a renovar: 
            <bean:write name="beneficioSelected" property="diasReutilizar"/></DIV>
          </td>
        </tr>
        <tr>
          <td align="center">
            <DIV align="left">Sede donde se renovara: 
            <logic:iterate length="1" id="sede" name="sedes" type="com.cs.beneficios.business.model.SedeVO">
                  <html:select name="sede" property="codeSede" styleClass="form">
                    <html:options name="ListaSede" labelName="code" labelProperty="nombre" property="code" collection="sedes"/>
                  </html:select>
            </logic:iterate>
            </DIV>
          </td>
        </tr>
        <tr>
          <td align="center">
            <input type="submit"  value="Renovar"/>
          </td>
        </tr>
      </table>
      </form>
      </logic:iterate>
    </logic:present>
    <logic:notPresent name="beneficioSelected">
      No se encontro el beneficio a renovar..
    </logic:notPresent>
    </logic:iterate>
    <logic:present name="msg">
          <strong><DIV align="center"><%=(String)session.getAttribute("msg")%></DIV></strong>
           <%session.removeAttribute("msg");%>
    </logic:present>
  </body>
</html>
